// CrossModal.h : Implementation of the CCrossModal class



// CCrossModal implementation

// code generated on 28 May 2007, 19:24

#include "stdafx.h"
#include "CrossModal.h"
IMPLEMENT_DYNAMIC(CCrossModal, CRecordset)

CCrossModal::CCrossModal(CDatabase* pdb)
	: CRecordset(pdb)
{
	m_SOM1 = "";
	m_SOM2 = "";
	m_HebbianLink = "";
	m_nFields = 3;
	m_nDefaultType = dynaset;
}

CString CCrossModal::GetDefaultConnect()
{
	return _T("DSN=imageData;Description=Connecting to the cell image database;UID=Administrator;APP=Microsoft\x00ae Visual Studio\x00ae 2005;WSID=D4FN7F2J;DATABASE=ImageCell;LANGUAGE=us_english;Network=DBMSSOCN;Address=134.226.38.17,1999");
}

CString CCrossModal::GetDefaultSQL()
{
	return _T("[dbo].[CrossModal]");
}

void CCrossModal::DoFieldExchange(CFieldExchange* pFX)
{
	pFX->SetFieldType(CFieldExchange::outputColumn);
// Macros such as RFX_Text() and RFX_Int() are dependent on the
// type of the member variable, not the type of the field in the database.
// ODBC will try to automatically convert the column value to the requested type
	RFX_Text(pFX, _T("[SOM1]"), m_SOM1, SHRT_MAX);
	RFX_Text(pFX, _T("[SOM2]"), m_SOM2, SHRT_MAX);
	RFX_Text(pFX, _T("[HebbianLink]"), m_HebbianLink, SHRT_MAX);

}
/////////////////////////////////////////////////////////////////////////////
// CCrossModal diagnostics

#ifdef _DEBUG
void CCrossModal::AssertValid() const
{
	CRecordset::AssertValid();
}

void CCrossModal::Dump(CDumpContext& dc) const
{
	CRecordset::Dump(dc);
}
#endif //_DEBUG


